package cn.worken.baseframe.facade.facade.impl;

import cn.worken.baseframe.bean.dto.QueryDemoDTO;
import cn.worken.baseframe.facade.bo.DemoBO;
import cn.worken.baseframe.facade.facade.IDemoFacade;
import cn.worken.baseframe.service.domain.DemoDO;
import cn.worken.baseframe.service.service.IDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author genxin.liu
 * @since 2021/12/27 15:01
 */
@Component
public class DemoFacadeImpl implements IDemoFacade {
    
    @Autowired
    private IDemoService demoService;
    
    @Override
    public List<DemoBO> queryDemoList(QueryDemoDTO queryDemoDTO) {
        List<DemoDO> demoDOList = demoService.queryDemoList(queryDemoDTO);
        return DemoBO.copyList(demoDOList);
    }
}
